package ltd.rycloud.tms.entity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Timestamp;

/***
 * @author     ：RYCloud.ltd ZhangLongBiao
 * @date       ：Created in 2019/6/24 2:23
 * @description：
 * @modified By：
 * @version: $
 *山东如翼云计算科技有限公司  张龙彪  15169994844
 ***/
@Entity
public class Pxjiesuan {
    private int pxjiesuanId;
    private int pxshenbaoId;
    private long userId;
    private Timestamp begindate;
    private Timestamp enddate;
    private String txuser;
    private Double hfje;
    private String pxzj;
    private Byte audit;
    private Byte bxstatus;

    @Id
    @Column(name = "pxjiesuan_id")
    public int getPxjiesuanId() {
        return pxjiesuanId;
    }

    public void setPxjiesuanId(int pxjiesuanId) {
        this.pxjiesuanId = pxjiesuanId;
    }

    @Basic
    @Column(name = "pxshenbao_id")
    public int getPxshenbaoId() {
        return pxshenbaoId;
    }

    public void setPxshenbaoId(int pxshenbaoId) {
        this.pxshenbaoId = pxshenbaoId;
    }

    @Basic
    @Column(name = "user_id")
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    @Basic
    @Column(name = "begindate")
    public Timestamp getBegindate() {
        return begindate;
    }

    public void setBegindate(Timestamp begindate) {
        this.begindate = begindate;
    }

    @Basic
    @Column(name = "enddate")
    public Timestamp getEnddate() {
        return enddate;
    }

    public void setEnddate(Timestamp enddate) {
        this.enddate = enddate;
    }

    @Basic
    @Column(name = "txuser")
    public String getTxuser() {
        return txuser;
    }

    public void setTxuser(String txuser) {
        this.txuser = txuser;
    }

    @Basic
    @Column(name = "hfje")
    public Double getHfje() {
        return hfje;
    }

    public void setHfje(Double hfje) {
        this.hfje = hfje;
    }

    @Basic
    @Column(name = "pxzj")
    public String getPxzj() {
        return pxzj;
    }

    public void setPxzj(String pxzj) {
        this.pxzj = pxzj;
    }

    @Basic
    @Column(name = "audit")
    public Byte getAudit() {
        return audit;
    }

    public void setAudit(Byte audit) {
        this.audit = audit;
    }

    @Basic
    @Column(name = "bxstatus")
    public Byte getBxstatus() {
        return bxstatus;
    }

    public void setBxstatus(Byte bxstatus) {
        this.bxstatus = bxstatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Pxjiesuan pxjiesuan = (Pxjiesuan) o;

        if (pxjiesuanId != pxjiesuan.pxjiesuanId) return false;
        if (pxshenbaoId != pxjiesuan.pxshenbaoId) return false;
        if (userId != pxjiesuan.userId) return false;
        if (begindate != null ? !begindate.equals(pxjiesuan.begindate) : pxjiesuan.begindate != null) return false;
        if (enddate != null ? !enddate.equals(pxjiesuan.enddate) : pxjiesuan.enddate != null) return false;
        if (txuser != null ? !txuser.equals(pxjiesuan.txuser) : pxjiesuan.txuser != null) return false;
        if (hfje != null ? !hfje.equals(pxjiesuan.hfje) : pxjiesuan.hfje != null) return false;
        if (pxzj != null ? !pxzj.equals(pxjiesuan.pxzj) : pxjiesuan.pxzj != null) return false;
        if (audit != null ? !audit.equals(pxjiesuan.audit) : pxjiesuan.audit != null) return false;
        if (bxstatus != null ? !bxstatus.equals(pxjiesuan.bxstatus) : pxjiesuan.bxstatus != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = pxjiesuanId;
        result = 31 * result + pxshenbaoId;
        result = 31 * result + (int) (userId ^ (userId >>> 32));
        result = 31 * result + (begindate != null ? begindate.hashCode() : 0);
        result = 31 * result + (enddate != null ? enddate.hashCode() : 0);
        result = 31 * result + (txuser != null ? txuser.hashCode() : 0);
        result = 31 * result + (hfje != null ? hfje.hashCode() : 0);
        result = 31 * result + (pxzj != null ? pxzj.hashCode() : 0);
        result = 31 * result + (audit != null ? audit.hashCode() : 0);
        result = 31 * result + (bxstatus != null ? bxstatus.hashCode() : 0);
        return result;
    }
}
